import request from "@/utils/request";

// 查询质量检测订单列表
export function listTaskRecord(query) {
  return request({
    url: "/prod/taskRecord/list",
    method: "get",
    params: query,
  });
}
// 关闭
export function batchCloseTask(data) {
  return request({
    url: "/prod/taskRecord/batchCloseTask",
    method: "post",
    data: data,
  });
}
// 查询详细
export function getExecuteList(id) {
  return request({
    url: '/prod/taskRecord/getExecuteList/' + id,
    method: 'get'
  })
}
//  暂存任务  
export function storeTask(data) {
  return request({
    url: "/prod/taskRecord/storeTask",
    method: "post",
    data: data,
  });
}
//  提交任务  
export function submitTask(data) {
  return request({
    url: "/prod/taskRecord/submitTask",
    method: "post",
    data: data,
  });
}
// 查询 子任务操作记录
export function listTaskRecordOperate(query) {
  return request({
    url: "/prod/taskRecordOperate/list",
    method: "get",
    params: query,
  });
}

// 获取 页面待办数量
export function statisToDoTasks(query) {
  return request({
    url: "/prod/taskRecord/statisToDoTasks",
    method: "get",
    params: query,
  });
}
